package com.jiaai.cloud.wx.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-09-08
 */
@TableName("t_wxalter")
public class TWxalter extends Model<TWxalter> {

    private static final long serialVersionUID = 1L;

    /**
     * 轮播组的id
     */
    @TableId(value = "alterid", type = IdType.AUTO)
	private Integer alterid;
    /**
     * 轮播组的名称
     */
	private String groupname;
    /**
     * 轮播的状态 0:禁用 1:启用
     */
	private Integer alterstate;


	public Integer getAlterid() {
		return alterid;
	}

	public void setAlterid(Integer alterid) {
		this.alterid = alterid;
	}

	public String getGroupname() {
		return groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}

	public Integer getAlterstate() {
		return alterstate;
	}

	public void setAlterstate(Integer alterstate) {
		this.alterstate = alterstate;
	}

	@Override
	protected Serializable pkVal() {
		return this.alterid;
	}

	@TableField(exist = false)
	private List<TWxalterimg> alterimgs = new ArrayList<>();

	public List<TWxalterimg> getAlterimgs() {
		return alterimgs;
	}

	public void setAlterimgs(List<TWxalterimg> alterimgs) {
		this.alterimgs = alterimgs;
	}
}
